<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateKdPerformance extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('kd_performance', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('shop_name')->comment('门店');
            $table->integer('designer_id')->comment('设计师用户ID');
            $table->string('order_level')->comment('订单星级');
            $table->string('cost_category')->comment('费用等级');
            $table->string('charge_level')->comment('收费等级');
            $table->integer('order_square')->default(0)->comment('订单平方数');
            $table->integer('performance')->default(0)->comment('绩效');
            $table->timestamp('place_order_time')->comment('下单时间');
            $table->timestamp('time')->comment('完成时间');
            $table->integer('place_order_square')->default(0)->comment('下单平方数');
            $table->integer('place_order_performance')->default(0)->comment('下单绩效');
            $table->integer('c_order_square')->default(0)->comment('c单平方数');
            $table->integer('c_order_money')->default(0)->comment('c单金额');
            $table->integer('remark')->default(0)->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('kd_performance');
    }
}
